package cc.minos.components.skins
{
	import flash.display.Graphics;
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author Minos
	 */
	public class Skin extends Sprite
	{
		protected var _width:Number = 15;
		protected var _height:Number = 15;
		
		protected var _fillColor:uint;
		
		protected var _type:String = "skin";
		
		public function Skin()
		{
			draw();
		}
		
		public function setSize( w:Number , h:Number ):void
		{
			_width = w;
			_height = h;
			draw();
		}
		
		public function setPostion( x:Number = 0 , y:Number = 0 ):void
		{
			this.x = Math.round( x );
			this.y = Math.round( y );
		}
		
		public function draw():void
		{
			//draw
			this.graphics.clear();
		}
		
		public function get type():String
		{
			return _type;
		}
		
		public function get fillColor():uint
		{
			return _fillColor;
		}
		
		public function set fillColor( value:uint ):void
		{
			_fillColor = value;
			draw();
		}
	
	}

}